#ifndef	COOK_HPP__
# define	COOK_HPP__

# include	"Thread.hpp"
# include	"Task.hpp"

class Cook : public Thread
{
public:
  Cook() : Thread() {}
  ~Cook() {}

  virtual void	*run(void) {
    Task	*task = static_cast<Task *>(this->arg);

    return ((task) ? (task->toRun()) : (task));
  }
};

#endif	/* !COOK_HPP__ */